package jbase.project.system.net.http;

public interface HttpConstants {

	public final static String HTTP_GET = "GET";
	public final static String HTTP_POST = "POST";
	public final static String HTTP_PUT = "PUT";
	public final static String HTTP_DELETE = "DELETE";
	public final static String HTTP_CONNECT = "CONNECT";

	public final static byte[] DBCRLF = new byte[] { 0xD, 0xA, 0xD, 0xA };
	public final static byte[] CRLF = new byte[] { 0xD, 0xA };

	public static String HTTP_REQUEST_FIELD_HEADERS = "request.headers";
	public static String HTTP_REQUEST_FIELD_CONTENT_LENGTH = "request.contentLength";
	public static String HTTP_REQUEST_FIELD_CONTENT_TYPE = "request.contentType";
	public static String HTTP_REQUEST_FIELD_BODY = "request.body";
	public static String HTTP_REQUEST_FIELD_VERSION = "request.version";
	public static String HTTP_REQUEST_FIELD_METHOD = "request.method";
	public static String HTTP_REQUEST_FIELD_HOST = "request.host";
	public static String HTTP_REQUEST_FIELD_METHOD_PATH = "request.methodPath";

	public static String HTTP_STREAM_IN = "http.in";
	public static String HTTP_STREAM_OUT = "http.out";

	public static String HTTP_REQUEST_DELEGATE_EVENT_GET = "http.request.get";
	public static String HTTP_REQUEST_DELEGATE_EVENT_POST = "http.request.post";

}
